package com.rainsoftware.LicenseSystem.models.entity;

import com.rainsoftware.LicenseSystem.models.entity.base.BaseEntity;
import gaarason.database.annotation.Column;
import gaarason.database.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.Date;
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Table(name = "logs")
public class Logs extends BaseEntity {
    private String event;

    @Column(name = "uuid", nullable = true)
    private int uuid;

    @Column(nullable = false)
    private String logLevel; // e.g., INFO, DEBUG, ERROR

    @Column(name = "message", nullable = true)
    private String message;

    @Column(name = "created_at", nullable = true)
    private LocalDateTime created_at;

    @Repository
    public static class Model extends BaseEntity.BaseModel<Logs, Integer> {

    }
}